part of '../page.dart';

class _CollectionFolderTile extends StatelessWidget with ScreenUtilMixin {
  const _CollectionFolderTile({
    required this.title,
    required this.onPressed,
    this.trailing,
    this.showPremiumBadge = false,
  });

  final String title;
  final VoidCallback? onPressed;
  final Widget? trailing;
  final bool showPremiumBadge;

  @override
  Widget build(BuildContext context) {
    final titleText = Text(
      title,
      style: CoreTheme.of(context).textTheme.tileBoldTitle,
      textWidthBasis: TextWidthBasis.longestLine,
    );

    return PressableTextTile(
      titleText: titleText,
      onPressed: onPressed,
      trailing: trailing,
      showPremiumBadge: showPremiumBadge,
    );
  }
}
